use salvo::Depot;

pub fn current_username(depot: &mut Depot) -> String {
    let username = depot.get::<&str>("current_user").copied().unwrap_or("anonymousUser");
    username.to_string()
}